package com.cmpe451.nutty.security;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices;

/**
 * @author CmpE Group 2 Fall 2014 nuttyconfirmation@gmail.com
 * 
 */
public class CustomRememberMeServices extends TokenBasedRememberMeServices {

	@Override
	public void onLoginSuccess(HttpServletRequest request, HttpServletResponse response, Authentication successfulAuthentication) {
		super.onLoginSuccess(request, response, successfulAuthentication);
	}

	@Override
	protected void onLoginFail(HttpServletRequest request, HttpServletResponse response) {}

	@Override
	protected void setCookie(String[] tokens, int maxAge, HttpServletRequest request, HttpServletResponse response) {
		String cookieValue = encodeCookie(tokens);
	}

	@Override
	protected void cancelCookie(HttpServletRequest request, HttpServletResponse response) {}
}
